﻿@model SEMS.Models.Classes
           
@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Admin/Shared/_Layout.cshtml";
}

@Html.ValidationSummary(true, "修改失败!")

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<h2>@ViewBag.ID 班第 @ViewBag.SmallId 小班</h2>
@using (Html.BeginForm(new
{
    id=ViewBag.ID,
    smallid=ViewBag.SmallID
}))
{
    <fieldset>
        <legend>修改班级信息</legend>
        <!--班级的班号不可修改

        <div class="editor-label">
            @Html.LabelFor(m => m.class_id)
        </div>

        <div class="editor-field">
            @Html.TextBoxFor(m => m.class_id)
            @Html.ValidationMessageFor(m => m.class_id)
        </div>

        <div class="editor-label">
            @Html.LabelFor(m => m.class_small_id)
        </div>

        <div class="editor-field">
            @Html.TextBoxFor(m => m.class_small_id)
            @Html.ValidationMessageFor(m => m.class_small_id)
        </div>
        -->
        <!--年级-->
        <div class="editor-label">
            @Html.LabelFor(m => m.class_grade)
        </div>

        <div class="editor-field">
            @Html.TextBoxFor(m => m.class_grade)
            @Html.ValidationMessageFor(m => m.class_grade)
        </div>
        <input type="submit" value="确认修改"/>
    </fieldset>
}